package com.tckdq.tcc.dto;

import com.tckdq.tcc.domain.Course;
import com.tckdq.tcc.domain.CourseDetail;
import com.tckdq.tcc.domain.CourseMarket;
import com.tckdq.tcc.domain.CourseResource;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class CourseAddDto {
    @Valid
    private Course course;
    @Valid
    private CourseDetail courseDetail;
    @Valid
    private CourseMarket courseMarket;
    @Valid
    private CourseResource courseResource;
    //选择的老师
    @NotEmpty(message = "请选择老师")
    private List<Long> teacharIds;
}
